﻿<controls:MetroWindow  x:Class="YAWD.Windows.MessageBoxYesNo"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
        x:Name="window" Height="200" Width="500">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
               <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <SolidColorBrush x:Key="BlackBrush" Color="Black" />
            <Canvas Width="48" Height="48" Clip="F1 M 0,0L 48,0L 48,48L 0,48L 0,0" x:Key="AppbarClose">
                <Path Width="20" Height="20" Canvas.Left="14" Canvas.Top="14" Stretch="Fill" 
                      Fill="{StaticResource BlackBrush}" 
                      Data="F1 M 17,14L 24,21L 30.9999,14.0001L 33.9999,17.0001L 27,24L 33.9999,31L 31,34L 24,27L 17,34L 14,31L 21,24L 14,17L 17,14 Z " />
            </Canvas>
            <Canvas Width="48" Height="48" Clip="F1 M 0,0L 48,0L 48,48L 0,48L 0,0" x:Key="AppbarCheck">
                <Path Width="20" Height="20" Canvas.Left="14" Canvas.Top="14" Stretch="Fill" 
                      Fill="{StaticResource BlackBrush}" 
                      Data="M34.4,57.260012L61.237001,57.260012 61.237001,61.041014 34.4,61.041014z M19.66,57.260012L28.353001,
                      57.260012 28.353001,61.041014 19.66,61.041014z M0,49.700014L13.607,49.700014 13.607,61.040015 0,61.040015z 
                      M58.366865,0.001318883C59.747869,0.030781931 61.122957,0.55389105 62.205778,1.5758266 64.515921,3.7557126 
                      64.6159,7.4055379 62.435766,9.7255576L30.604643,41.92483C28.494579,44.16477 25.014471,44.314917 22.694319,
                      42.344984 22.4144,42.174822 22.154381,41.984885 21.904372,41.764921L8.0038372,29.62504C5.5937148,27.54525 
                      5.3336955,23.90519 7.4138497,21.495329 9.4938824,19.085467 13.134031,18.825463 15.534143,20.915263L26.084457,
                      30.135039 54.065466,1.7957924C55.228979,0.56860022,56.801722,-0.03207104,58.366865,0.001318883z" />
            </Canvas>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="55"/>
        </Grid.RowDefinitions>
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
            <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="MessageText" TextWrapping="Wrap" Margin="10,20,10,10" 
                       FontSize="{DynamicResource NormalFontSize}" FontFamily="Segoe UI"/>
        </ScrollViewer>
        <Grid Grid.Row="1" Background="#FF41B1E1">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <controls:AppBarButton Click="Cancel_Click" IsCancel="True" HorizontalAlignment="Left" Grid.Column="0" Margin="5,0,0,0"
                            		VerticalAlignment="Top" x:Name="Cancel" MetroImageSource="{DynamicResource AppbarClose}"
                            		Foreground="Black" Width="48" Height="48" VerticalContentAlignment="Center" />

                <controls:AppBarButton Click="Ok_Click" IsDefault="True" HorizontalAlignment="Right" Grid.Column="1" Margin="0,0,5,0"
                            		VerticalAlignment="Top"  MetroImageSource="{DynamicResource AppbarCheck}" VerticalContentAlignment="Center"
                            		Foreground="Black" Width="48" Height="48" x:Name="Ok" />
            </Grid>
        </Grid>
    </Grid>
</controls:MetroWindow>

